package pkg

type Sms interface {
	Send(phone string, code string) error
}
type AliyunSms struct {
}

func (s *AliyunSms) Send(phone string, code string) error {
	_, err := Send(phone, code)
	if err != nil {
		return err
	}

	//if *send.Body.Message != "OK" {
	//	fmt.Errorf(*send.Body.Code)
	//}
	return err
}

// HuyiWx 互亿无线
//type HuyiWx struct {
//}
//
//func (a *HuyiWx) Send(phone string, code string) error {
//	return nil
//}
